//
//  FoodMoreData.m
//  ZCooking
//
//  Created by LL.F on 16/09/12
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "FoodMoreData.h"
#import "FoodMoreSecData.h"

@implementation FoodMoreData

+ (NSDictionary *)objectClassInArray{
    return @{@"data" : [FoodMoreSecData class]};
}
- (void)setValue:(id)value forKey:(NSString *)key
{
    
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"data"]) {
        NSMutableArray<FoodMoreSecData *>  *dataArray = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            FoodMoreSecData *data = [FoodMoreSecData modelWithDic:dic];
            [dataArray addObject:data];
        }
        _data = dataArray;
    }
}
@end
